/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
export default {
  dev: {
    '/api/': {
      target: 'http://101.132.181.152/api/',
      changeOrigin: true,
      pathRewrite: {
        '^/api': '',
      },
    },
    '/wbn-api/': {
      target: 'http://wbnoa.wbnacc.com/wbn-api',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-api': '',
      },
    },
    '/wbn-oss/': {
      target: 'http://wbnoa.wbnacc.com/wbn-oss',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-oss': '',
      },
    },
    '/oss/': {
      target: 'http://101.132.181.152/oss',
      changeOrigin: true,
      pathRewrite: {
        '^/oss': '',
      },
    },
    '/baiduapi/': {
      target: 'https://aip.baidubce.com',
      changeOrigin: true,
      pathRewrite: {
        '^/baiduapi': '',
      },
    },
  },
  test: {
    '/api/': {
      target: 'http://101.132.181.152/api',
      changeOrigin: true,
      pathRewrite: {
        '^/api': '',
      },
    },
    '/wbn-api/': {
      target: 'http://wbnoa.wbnacc.com/wbn-api',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-api': '',
      },
    },
    '/oss/': {
      target: 'http://wbnoa.wbnacc.com/oss',
      changeOrigin: true,
      pathRewrite: {
        '^/oss': '',
      },
    },
    '/wbn-oss/': {
      target: 'http://wbnoa.wbnacc.com/wbn-oss',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-oss': '',
      },
    },
    '/baiduapi/': {
      target: 'https://aip.baidubce.com',
      changeOrigin: true,
      pathRewrite: {
        '^/baiduapi': '',
      },
    },
  },
  pre: {
    '/api/': {
      target: 'http://101.132.181.152/api',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/wbn-api/': {
      target: 'http://wbnoa.wbnacc.com/wbn-api',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-api': '',
      },
    },
    '/oss/': {
      target: 'http://wbnoa.wbnacc.com/oss',
      changeOrigin: true,
      pathRewrite: {
        '^/oss': '',
      },
    },
    '/wbn-oss/': {
      target: 'http://wbnoa.wbnacc.com/wbn-oss',
      changeOrigin: true,
      pathRewrite: {
        '^/wbn-oss': '',
      },
    },
    '/baiduapi/': {
      target: 'https://aip.baidubce.com',
      changeOrigin: true,
      pathRewrite: {
        '^/baiduapi': '',
      },
    },
  },
};
